<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>

<div id="subSortManageAdd_divId">
<s:form id="query_pubData_sub_list_form" name="query_pubData_sub_list_form" method="post" action="pubData/subList.do">
	<s:hidden name="pid" id="pid"/>
	<input name="pagingCnt" type="hidden" value="subSortManageAdd_divId">
	<input name="hidden_submit" style="display:none;"/>
	<div class="content-title" style="margin-bottom: 5px;">
		<div class="floatl">
			分类名称：
			<input name="name" type="text" title="分类名称" class="text-box" size="20" maxlength="15" onkeypress="Ext.milan.pagejs.page_pubData.addSubSort(event)"/>
			<span class="note_red">*</span>
			<a class="btn_short" href="javascript:void(0)" title="点击新建分类" onClick="Ext.milan.pagejs.page_pubData.addSubSort();">新 建</a>
			<a class="btn_short" href="javascript:void(0)" title="点击关闭窗口" onClick="Ext.milan.pagejs.page_pubData.hideWin();">关 闭</a>
		</div>
	</div>
	<table id="addRessubsort_grid" width="98%" class="dhtmlxGrid" imgpath="skins/default/images/dhtmlx/" lightnavigation="true">
		<tr class="title">
			<td>分类名称</td>
			<td sort="na" width="30%">操作</td>
		</tr>
		<c:forEach items="${page.result}" var="item" varStatus="status">
		<tr>
			<td align="center">${item.name}</td>
			<td align="center">
				<a href="#" onClick="Ext.milan.pagejs.page_pubData.showUpdateSubSortPage('${item.id}');"><img src="skins/default/images/icons/ico-edit.gif" />编辑</a>&nbsp;
				<a href="#" onClick="Ext.milan.pagejs.page_pubData.deleteSubSort('${item.id}');"><img src="skins/default/images/icons/ico-delete.gif" />删除</a>
			</td>
			
		</tr>
		</c:forEach>
		
		<c:if test="${fn:length(page.result)==0}">
		<tr>
	    	<td colspan="5"><div class="note_red_in_div">系统没有查找到符合条件的数据！</div></td>
	    </tr>
	    </c:if>
	</table>
	<input type="hidden" name="pageNumber" value="${page.thisPageNumber}"/>
	<input type="hidden" name="pageSize" value="${page.pageSize}"/>
	<simpletable:pagingToolbar page="${page}"/>
</s:form>
</div>
